package com.trip.driver.service;

import com.trip.common.dto.DriverOrderSearchDto;
import com.trip.common.dto.UpdateDriverDto;
import com.trip.common.entity.Driver;
import com.baomidou.mybatisplus.extension.service.IService;
import com.trip.common.dto.LoginDto;
import com.trip.common.entity.Driver;
import com.trip.common.po.Comment;
import com.trip.common.po.TripOrder;
import com.trip.common.vo.Result;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hr
 * @since 2024-09-05
 */
public interface DriverService extends IService<Driver> {
    Result loginByAccount(LoginDto loginDto);
    Result loginByEmail(LoginDto loginDto);
    void sendEmail(String email);
    BigDecimal getMyMoney(String token);
    String getMyDistance(String token);
    String getMyOrderNum(String token);
    String getToDayPrice(String token);
    Result resetPWD(UpdateDriverDto updateDriverDto);
    Result getMyOrderDetail(DriverOrderSearchDto driverOrderSearchDto);
    Result getDriverInfo(String token);
    Result getOrderDetailByID(String order_id);
    Result unpaidOrders(String order_id);
    Result getCommentByID(String token);
    Result updateDriverInfo(UpdateDriverDto updateDriverDto);
}
